package me.liuyu.ymall.order.resource;

import me.liuyu.ymall.member.oauth.DO.MemberInfo;
import me.liuyu.ymall.member.oauth.client.MemberClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author liuyu E-mail: liuyu2783@163.com
 * @Date 2018/5/25 13:51
 * @Descrption
 * @Modified By
 */
@RestController
@RequestMapping
public class MallOrderApi {

    @Autowired
    private MemberClient memberClient;

    @RequestMapping("listMyOrder")
    public MemberInfo listMyOrder(){
        return memberClient.getMemberInfo(1);
    }
}
